<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title>考试中心</title>
<link rel="stylesheet" type="text/css" href="css/lib/swiper.min.css"/>
<link rel="stylesheet" type="text/css" href="css/lib/doumee.css"/>
<link rel="stylesheet" type="text/css" href="css/lib/dialog.css"/>
<link rel="stylesheet" type="text/css" href="css/exanIndex.css"/>
<script src="js/lib/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
<script src="js/lib/swiper.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/lib/vue-2.5.17.js" type="text/javascript" charset="utf-8"></script>
<script src="js/lib/doumee.js" type="text/javascript" charset="utf-8"></script>
<script src="js/lib/dialog.js" type="text/javascript" charset="utf-8"></script>
</head>

<body>

<div v-cloak id="zbom">

	<header class="header">
		<a class="left_icon back_btn"></a>
		<h4 class="title">考试中心</h4>
	</header>
	
	<div class="swiper-container Main" id="Main">
		<div class="swiper-wrapper">
			<div class="swiper-slide content">
				
				<div class="children" id="exam_dtl">
					
					<div class="top_photo">
						<img src="image/exam/exam_cover.jpg" />
					</div>
					
					<!--基础信息-->
					<div class="base-info dm-mb bg-w">
						<h4 class="name">{{lesson.name}}</h4>
						<h5 class="classify dm-clearfix">
							{{lesson.classify}}
							<span class="type h6">{{lesson.type}}</span>
							<span class="num dm-right">已有100人学习</span>
						</h5>
					</div>
					
					<!--课程三大块-->
					<div class="threeMod">
						<div class="dm-mb bg-w">
							<ul class="test_wrap flex-row flex-bottom" :data-type="lesson.statu">
								<li class="flex-full h5 tl">
									<dl>
										<dt>考试时间</dt>
										<dd>2018-12-12 14:00:00</dd>
									</dl>
									<dl>
										<dt>考试时长</dt>
										<dd>100分钟</dd>
									</dl>
									<dl>
										<dt>考试地点</dt>
										<dd>志邦总部研发楼202</dd>
									</dl>
								</li>
								<li>
									<span class="sign_1" v-if="lesson.statu == 0">报名考试</span>
									<span class="sign_2" v-else-if="lesson.statu == 1">已报名</span>
									<span class="sign_2" v-else>已结束</span>
								</li>
							</ul>
						</div>
						
						<div class="dm-mb bg-w">
							<div class="dm-title bottom-line"><span>简介</span></div>
							<div class="intro">这里是课程简介这里是课程简介这里是课程简介这里是课程简介这里是课程简介这里是课程简介这里是课程简介这里是课程简介</div>
						</div>
							
					</div>
					
				</div>
				
			</div>
		</div>
	</div>
	
</div>


<!--引入模拟数据-->
<script src="data/examData.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">

var vm = new Vue({
	el:"#zbom",
	data:{
		swiper:null,
		lesson:{},
	},
	methods:{
		//获取id对应数据
		getData:function(){
			var id = getUrlParam('id');
			for(var i=0;i<examData.length;i++){
				if(courses[i].id == id){
					this.lesson = examData[i];
				};
			};
		},
		
	},
	mounted:function(){
		var that = this;
		this.swiper = pullSwiper('#Main',{
			up:true,
		});
		this.getData();
	}
});


//刷新数据
function refresh(pull){
	pull.innerText = '刷新成功';
};

//加载数据
//function reload(pull){
//	pull.innerText = '已加载全部数据'
//};

</script>

</body>
</html>
